﻿@{
    var X = Html.X();
}



@(
X.Window()
    .X(10)
    .Y(20)
    .Width(800)
    .ID("win234")
    .Height(500)
    .Icon(Icon.Clock)
    .Title("Server Time")
    .Padding(10)
    .CloseAction(CloseAction.Destroy)
    .Modal(true)
    .Items()
    .Add(
        X.Container()
        .ID("container123")
        .X(10)
        .Y(10)
        .Width(800)
        .Height(400)
        .Padding(10)
        .Loader(X.ComponentLoader()
                    .Url("~/HolidayDocument/QueryHolidayDocument")
                    .Mode(LoadMode.Frame)
                    .ReloadOnEvent(false)
                    .LoadMask(lm => lm.ShowMask = true)
                    .Params(new Parameter("selectHolidayDocument", "00000000-0000-0000-0000-000000000000", ParameterMode.Value))
                    .Params(new Parameter("processState", "0"))
                    )
    )
    .Add(
        X.Button().Text("CloseWindow")
        .DirectEvents(de=>de.Click.Url = Url.Action("CloseWindow"))
    )
    .Add(
        X.Button().Text("Test")
        .ID("btndisable")
        .Handler("App.btndisable.disable()")  
)
) 